

        <g:set var="entityName" value="${message(code: 'organize.label', default: 'Organize')}" />
            <g:form method="post" >
                <g:hiddenField name="id" value="${organizeInstance?.id}" />
                <g:hiddenField name="version" value="${organizeInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="name"><g:message code="organize.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: organizeInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" maxlength="250" value="${organizeInstance?.name}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="shortName"><g:message code="organize.shortName.label" default="Short Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: organizeInstance, field: 'shortName', 'errors')}">
                                    <g:textField name="shortName" maxlength="250" value="${organizeInstance?.shortName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="users"><g:message code="organize.users.label" default="Users" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: organizeInstance, field: 'users', 'errors')}">
                                    
<ul>
<g:each in="${organizeInstance?.users?}" var="u">
    <li><g:link controller="user" action="show" id="${u.id}">${u?.encodeAsHTML()}</g:link></li>
</g:each>
</ul>
<g:link controller="user" action="create" params="['organize.id': organizeInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'user.label', default: 'User')])}</g:link>

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="children"><g:message code="organize.children.label" default="Children" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: organizeInstance, field: 'children', 'errors')}">
                                    
<ul>
<g:each in="${organizeInstance?.children?}" var="c">
    <li><g:link controller="organize" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></li>
</g:each>
</ul>
<g:link controller="organize" action="create" params="['organize.id': organizeInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'organize.label', default: 'Organize')])}</g:link>

                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="parent"><g:message code="organize.parent.label" default="Parent" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: organizeInstance, field: 'parent', 'errors')}">
                                    <g:select name="parent.id" class="select" from="${Organize.list()}" optionKey="id" value="${organizeInstance?.parent?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
